.window-controls-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 0;
  z-index: 1000;
  -webkit-app-region: drag;
  user-select: none;
}

.window-controls__left {
  display: flex;
  align-items: center;
  gap: 8px;
  -webkit-app-region: no-drag;
}

.window-controls__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.window-controls__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.window-controls__icon-img:hover {
  transform: scale(1.1);
}

.window-controls__icon-img:not([src]),
.window-controls__icon-img[src=""] {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  border-radius: 2px;
}

.window-controls__icon-img:not([src])::after,
.window-controls__icon-img[src=""]::after {
  content: "📱";
  font-size: 12px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.window-controls__title {
  color: #333333;
  font-size: 14px;
  font-weight: 500;
  -webkit-app-region: no-drag;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-controls {
  display: flex;
  height: 32px;
  -webkit-app-region: no-drag;
  pointer-events: auto;
  margin-left: auto;
}

.window-controls__button {
  width: 46px;
  height: 32px;
  border: none;
  background: transparent;
  color: #333333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
  -webkit-app-region: no-drag;
  pointer-events: auto;
}

.window-controls__button:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.window-controls__button--minimize:hover {
  background: rgba(255, 193, 7, 0.2);
}

.window-controls__button--maximize:hover {
  background: rgba(40, 167, 69, 0.2);
}

.window-controls__button--close:hover {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.window-controls__button:active {
  background: rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
}

.window-controls__button--close:active {
  background: rgba(220, 53, 69, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .window-controls-container {
    height: 28px;
    padding-left: 12px;
  }
  
  .window-controls__left {
    gap: 6px;
  }
  
  .window-controls__icon {
    width: 18px;
    height: 18px;
  }
  
  .window-controls__title {
    font-size: 13px;
  }
  
  .window-controls {
    height: 28px;
  }
  
  .window-controls__button {
    width: 40px;
    height: 28px;
  }
}
